<?php
$sessao = new Zend_Session_Namespace('Modulos');
?>
<ul class="menu-inicial">
        <?php /* <li><a href="<?php echo $this->baseUrl(); ?>" class="icon_site">Site</a></li> */ ?>
    <?php 
    if(isset($sessao->modulos_menu_inicial))
        foreach($sessao->modulos_menu_inicial as $row) { ?>
        <li>
            <a href="<?php echo $this->baseUrl($this->modulo.'/'.$row['MOD_ARQUIVO']); ?>">
                <div class="cnt-img">
                <?php
                 $img = glob('public/upload/modulos/'.$row['MOD_ID'].'.*');
                if(isset($img[0])){ ?> 
                <img src="<?php echo $this->baseUrl('/').$img[0]; ?>" />
                <?php } ?>
                <p><?php echo $row['MOD_NOME']; ?></p>
                </div>
            </a>
        </li>
    <?php } ?>
</ul>
